package com.usefullc.blog.vo;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.system.service.component.extend.ApiField;
import com.usefullc.system.service.component.extend.UsefulField;
import com.usefullc.user.domain.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 评论返回实体
 * @author: 星空
 * @date: 2022-07-07
 */
@Data
public class ReplyVo extends BaseDomain {

//useful_auto_generate_section_start


    @ApiModelProperty(notes = "ID")
    private Long id;


    @ApiModelProperty(notes = "删除状态")
    private Boolean delState;


    @ApiModelProperty(notes = "文章")
    private Long articleId;


    @ApiModelProperty(notes = "评论内容")
    private String content;


    @ApiModelProperty(notes = "点赞数")
    private Integer likeNum;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "创建时间")
    private Date gmtCreate;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "修改时间")
    private Date gmtModified;

    @ApiField(url = "/user/user/listAll", id = "id", value = "userName")
    @ApiModelProperty(notes = "评论用户")
    private Long userId;


    @ApiModelProperty(notes = "引用评论")
    private Long replyId;


//useful_auto_generate_section_end

    @ApiModelProperty(notes = "回复用户名称")
    private User replyUser;


}
